package com.tedu.interceptor.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/users")
public class UserController {
    @PostMapping("/reg")
    public String reg(){
        System.out.println("UserController.reg()执行了");
        return "注册成功";
    }

    @PostMapping("/login")
    public String login(){
        System.out.println("UserController.login()");
        return "登录成功";
    }
}
